home *** CD-ROM | disk | FTP | other *** search
- package org.flintparticles.renderers
- {
- import flash.display.Sprite;
- import org.flintparticles.particles.Particle;
-
- public class DisplayObjectRenderer extends Sprite implements Renderer
- {
-
-
- public function DisplayObjectRenderer()
- {
- super();
- mouseEnabled = false;
- mouseChildren = false;
- }
-
- public function removeParticle(param1:Particle) : void
- {
- removeChild(param1.image);
- }
-
- public function addParticle(param1:Particle) : void
- {
- addChildAt(param1.image,0);
- }
-
- public function renderParticles(param1:Array) : void
- {
- var _loc2_:Particle = null;
- var _loc3_:int = 0;
- var _loc4_:int = 0;
- _loc3_ = int(param1.length);
- _loc4_ = 0;
- while(_loc4_ < _loc3_)
- {
- _loc2_ = param1[_loc4_];
- _loc2_.image.transform.colorTransform = _loc2_.colorTransform;
- _loc2_.image.transform.matrix = _loc2_.matrixTransform;
- _loc4_++;
- }
- }
- }
- }
-